/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ 
/*    */ 
/*    */ public abstract class va
/*    */   implements b
/*    */ {
/*    */   public b[] q;
/*    */   public String g;
/*    */   
/*    */   public va(b[] arrayOfB, String str) throws Exception {
/* 12 */     if (arrayOfB.length < z()) {
/* 13 */       String str1 = String.format("Function '%s' requires at least %s arguments. %s are given!", new Object[] { v(), Integer.valueOf(z()), Integer.valueOf(arrayOfB.length) });
/* 14 */       throw new Exception(str1);
/*    */     } 
/* 16 */     this.q = arrayOfB;
/* 17 */     this.g = str;
/*    */   }
/*    */   
/*    */   public double v(int i) {
/* 21 */     if (i < 0 || i >= this.q.length) {
/* 22 */       return 0.0D;
/*    */     }
/* 24 */     return this.q[i].v();
/*    */   }
/*    */ 
/*    */   
/*    */   public String toString() {
/* 29 */     String str = "";
/* 30 */     for (int i = 0; i < this.q.length; i++) {
/* 31 */       str = str + this.q[i].toString();
/* 32 */       if (i < this.q.length - 1) {
/* 33 */         str = str + ", ";
/*    */       }
/*    */     } 
/* 36 */     return v() + "(" + str + ")";
/*    */   }
/*    */   
/*    */   public String v() {
/* 40 */     return this.g;
/*    */   }
/*    */   
/*    */   public int z() {
/* 44 */     return 0;
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\va.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */